find the general formula for this special sum